<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<table id="dataGrid" class="easyui-datagrid"    
data-options="
	url:'user/list',
	pagination:true,  //分页 
    fit:true,
    fitColumns:true,
    rownumbers:true,
    remoteSort:false, //本地排序
    sortName:'dept_name', //默认排序的字段
    sortOrder:'asc', //默认的排序规则 ‘asc’、‘desc’
    toolbar:'#tb'
">    
    <thead>   
        <tr>   
            <th data-options="field:'cb', checkbox:true,width:20,align:'center'"></th>   
            <th data-options="field:'id',title:'编号',width:40,align:'right',sortable:true"></th>   
            <th data-options="field:'username',title:'登陆账号',width:80,sortable:true"></th>   
            <th data-options="field:'nickname',title:'用户名称',width:80,sortable:true"></th>
            <th data-options="field:'mail',title:'邮箱',width:80,sortable:true"></th>
            <th data-options="field:'idcard',title:'身份证号',width:80,sortable:true"></th>
            <th data-options="field:'zuoji',title:'办公电话',width:80,sortable:true"></th>   
            <th data-options="field:'shouji',title:'手机',width:80,sortable:true"></th>   
            <th data-options="field:'dept_name',title:'所在部门',width:100,sortable:true"></th>   
            <th data-options="field:'status',title:'状态',width:40,sortable:true"></th>   
        </tr>   
    </thead>  
</table> 
<div id="tb">
	<div class="easyui-panel" style="margin:0px;padding:6px;width:100%;" data-options="closable:false,collapsible:true" title="用户管理">
	<div style="float:left">
		<a href="javascript:void(0);" onClick="openAddDialog()" class="easyui-linkbutton" iconCls="icon-add" plain="true">添加</a>
		<a href="javascript:void(0);" onClick="openEditDialog()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
		<a href="javascript:void(0);" onClick="openDeleteDialog()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
		<a href="javascript:void(0);" onClick="resetPassword()" class="easyui-linkbutton" iconCls="icon-reload" plain="true">重置密码</a>
		<a href="javascript:void(0);" onClick="lock()" class="easyui-linkbutton" iconCls="icon-reload" plain="true">锁定</a>
		<a href="javascript:void(0);" onClick="unLock()" class="easyui-linkbutton" iconCls="icon-reload" plain="true">解锁</a>
		
		<a href="javascript:void(0);" onClick="openRoleChooseDialog()" class="easyui-linkbutton" iconCls="icon-advancedsettings" plain="true">为用户分配角色</a>
	</div>
	<div style="float:right">
	            登陆账号或用户名称：<input id="usernames" class="easyui-textbox" style="width:110px">
	    <a href="javascript:void(0);" onClick="javascript:searchUser();" class="easyui-linkbutton" iconCls="icon-search">搜  索</a>
	</div>
	</div>
</div>